from wtforms import Form, ValidationError
from wtforms.fields import StringField,IntegerField,FileField
from wtforms.validators import Length
from flask import request

class BaseForm(Form):

    def message(self):
        message_list = []
        if self.errors:
            for errors in self.errors.values():
                message_list.extend(errors)
        return message_list

